<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PurchaseBulletin.ascx.cs" Inherits="smasb2b.PurchaseBulletin" %>
<%@ Register TagPrefix="uc1" TagName="VendorBulletin" Src="VendorBulletin.ascx" %>
<%@ Register TagPrefix="ddsc" Namespace="ddscControlLibrary" Assembly="ddscControlLibrary" %>

<head>
    <link href="/smasb2b/css/css.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="VND/js/VNDW0030.js"></script>
    <base target="_self">
</head>
<table cellspacing="0" cellpadding="0" width="750" border="0" id="Table1">
    <tr>
        <td>
            <img class="nonPrinted" height="120" src="images/title_index.jpg" width="750"></td>
    </tr>
    <tr id="VendorBulletin2" runat="server">
        <td align="center">
            <table id="VendorBulletin" runat="server">
                <tr>
                    <td width="600">
                        <uc1:VendorBulletin ID="VendorBulletin1" runat="server"></uc1:VendorBulletin>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<table class="basicTable" cellspacing="0" cellpadding="0" width="650" border="0" id="Tablee">
    <tr id="tr1" runat="server">
        <td width="600"><font face="新細明體">&nbsp;</font>
            <img class="iconIMG01" height="20" src="images/icon/icon_bulletin.gif" width="15" align="absMiddle">
            <a style="FONT-SIZE: 13px" href="/smasb2b/VND\VNDW0013.aspx?action_type=ADD">
                <asp:Label ID="lblVENDERENTER" runat="server" ForeColor="Blue" Font-Underline="True" Font-Bold="True">新廠商登錄</asp:Label></a>
            <asp:Label ID="lblVENDERENTER1" runat="server" Font-Bold="True" ForeColor="#5D3B22">新廠商登錄</asp:Label></td>
    </tr>
</table>
<table class="tableStyle5" id="DataGrid" cellspacing="0" cellpadding="0" width="650" border="0"
    runat="server">
    <tr>
        <td class="f1" colspan="2">
            <img class="iconIMG01" height="20" src="images/icon/icon_bulletin.gif" width="15" align="absMiddle">
            <asp:Label ID="lblPURCHASETITLE" runat="server" ForeColor="Red">採購公告</asp:Label></td>
    </tr>
    <tr id="DataGrid_head">
        <th width="20%" class="tdtitle">
            <asp:Label ID="lblNOTICE_DATE" runat="server">公告日期</asp:Label>
        </th>
        <th class="link" width="80%" id="NOTIC_TEXT" name="NOTIC_TEXT" url="/smasb2b/bulletin_pop.aspx">
            <asp:Label ID="lblNOTICE_TEXT" runat="server">公告標題</asp:Label>
        </th>
    </tr>
</table>
<table class="basicTable" cellspacing="0" cellpadding="0" width="650" border="0" id="Table2">
    <tr id="DataGrid_foot" runat="server">
        <td class="p2" width="381">
            <asp:Label ID="lblPAGEINDEX" runat="server">您目前在第</asp:Label>
            <ddsc:InputBoxCtrl ID="PageIndex" runat="server" EnableView="True" Width="16px"></ddsc:InputBoxCtrl>
            <asp:Label ID="lblPAGE1" runat="server" Width="8px">頁</asp:Label>&nbsp;
			<asp:Label ID="lblTOTAL" runat="server" Width="8px">共</asp:Label>
            <ddsc:InputBoxCtrl ID="PageCount" runat="server" EnableView="True" Width="21px"></ddsc:InputBoxCtrl>
            <asp:Label ID="lblPAGE" runat="server" Width="8px">頁</asp:Label></td>
        <td align="right" width="409">
            <asp:ImageButton ID="btnPREV" runat="server" ImageUrl="/smasb2b/images/icon/icon_forward.gif"></asp:ImageButton>&nbsp;
			<ddsc:InputBoxCtrl Style="DISPLAY: none" ID="GotoPage" runat="server" Width="29px"></ddsc:InputBoxCtrl>
            <asp:ImageButton Style="DISPLAY: none" ID="BtnGo" runat="server" ImageUrl="/smasb2b/images/chin/button/button_go.gif"></asp:ImageButton>
            <asp:ImageButton ID="BtnNext" runat="server" ImageUrl="/smasb2b/images/icon/icon_next.gif"></asp:ImageButton></td>
    </tr>
    <tr>
        <td class="p2" width="381" style="text-align:left">
            <!-- 'Update By Ben 2008/4/21 S8970025 -->
            <img class="iconIMG01" height="20" src="images/icon/icon_bulletin.gif" width="15" align="absMiddle"><a href="JAVASCRIPT:ADDNEWCODE('<%=Login%>');" onclick="" style="FONT-SIZE: 12px">
                <asp:Label ID="lblADDNEWCODE" runat="server" ForeColor="Blue" Font-Underline="True" Font-Bold="True">我要介紹新商品</asp:Label></a>
        </td>
    </tr>
</table>
<script language="JAVASCRIPT">
    var PURCHASETITLE_QueryDialog = "dialogWidth=640px;dialogHeight=740px;center=yes;border=thin;help=no;status=no;resizable=no;"
    function ADDNEWCODE(Login) {
        if (Login != '9') {
            if (Login == 'N') {
                alert(GetMessageByID('MSG066').text);
                var returnvalue = window.showModalDialog('/smasb2b/Login_pop.aspx?action_type=ADD', window, 'dialogWidth=230PX;dialogHeight=290px;center=yes;border=thin;help=no;status=no;resizable=no;', true)
            }
            else if (parseInt(Login) < 1) {
                alert(GetMessageByID('MSG067').text)
            }
            else {
                var returnobj = window.location.href = "/smasb2b/VND/Supply_Agreement.aspx?action_type=ADD&PROG_ID=VNDW0031";
            }
            if (returnvalue != null) {
                window.location = '/smasb2b/default.aspx?ID=' + returnvalue[0] + '&PW=' + returnvalue[1];
            }
        }
        else {
            var returnobj = window.location.href = "/smasb2b/VND/Supply_Agreement.aspx?action_type=ADD&PROG_ID=VNDW0031";
        }
    }
</script>

